#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()

lb = Listbox(root)
sb = Scrollbar(root, orient=HORIZONTAL)

for i in range(100):
    lb.insert(END, str(i))

lb['yscrollcommand']=sb.set
sb['command']=lb.yview

lb.pack(side=TOP)
sb.pack(side=BOTTOM, fill=X)

root.mainloop()
